package com.yuxinmuyu.sports_management.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "zqx.jwt")
public class JWTConfig {


    /**
     * 是否限制同一账号在不同地方同时登录
     */
    private boolean restrictExpiredToken = false;


    /**
     * token生成是否有过期时间 当为0时默认不过期
     */
    private Integer expireSeconds = 0;


    public boolean isRestrictExpiredToken() {
        return restrictExpiredToken;
    }

    public void setRestrictExpiredToken(boolean restrictExpiredToken) {
        this.restrictExpiredToken = restrictExpiredToken;
    }

    public Integer getExpireSeconds() {
        return expireSeconds;
    }

    public void setExpireSeconds(Integer expireSeconds) {
        this.expireSeconds = expireSeconds;
    }
}
